<?php
// set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('UTC');

$data = date("2012-04-02");
echo $data;

// Prints something like: Monday
/*echo date("l");
echo "<br/>";*/

// Prints something like: Monday 8th of August 2005 03:12:46 PM
//echo date('l jS \of F Y h:i:s A');
//echo "<br/>";

// Prints: July 1, 2000 is on a Saturday
//$data = date("l", mktime(0, 0, 0, 7, 1, 2000));
//echo "July 1, 2000 is on a " . $data;
//echo "<br/>";

/* use the constants in the format parameter */
// prints something like: Mon, 15 Aug 2005 15:12:46 UTC
//echo date(DATE_RFC822);
//echo "<br/>";

// prints something like: 2000-07-01T00:00:00+00:00
//echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));
//echo "<br/>";
?>